package client;

import msg.MsgContent;

/**
 *
 * @author tomek
 */
public class Conversation {
    
    static gui.ConversationGui myGui;
    String speaker;
    static MsgContent ms = new MsgContent("sender", "receiver", 12345678, "wiadomosc adasd asda ");
    
    public Conversation(String who) {
        
        speaker = who;
        myGui = new gui.ConversationGui(speaker, this);
        
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                myGui.showGui();
            }
        });
    }
     
    public gui.ConversationGui getGui() { return myGui; }
    
    public static void main(String[] args) {
        
        
        myGui.addMsg(ms);
    }
}
